<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BOSS Afterburner: BOSSOutputLoader.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BOSS Afterburner
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('BOSSOutputLoader_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BOSSOutputLoader.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="BOSSOutputLoader_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef BOSS_Afterburner_BOSSOutputLoader_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define BOSS_Afterburner_BOSSOutputLoader_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ChainLoader_8h.html">ChainLoader.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="BranchPlotOptions_8h.html">Containers/BranchPlotOptions.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PrintTable_8h.html">Functions/PrintTable.h</a>&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;TChain.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;TString.h&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;yaml-cpp/yaml.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="classBOSSOutputLoader.html">BOSSOutputLoader</a></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#a10870242930d8d48ded8bde0575a2233">   28</a></span>&#160;  <a class="code" href="classBOSSOutputLoader.html#a10870242930d8d48ded8bde0575a2233">BOSSOutputLoader</a>() {}</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <a class="code" href="classBOSSOutputLoader.html#a10870242930d8d48ded8bde0575a2233">BOSSOutputLoader</a>(<span class="keyword">const</span> TString&amp; directoryPath, <span class="keywordtype">bool</span> print_branches = <span class="keyword">true</span>,</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;                   <span class="keywordtype">bool</span> print_averages = <span class="keyword">false</span>);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="classBOSSOutputLoader.html#a72fe36425b77dd4dbfd87c93d2d1965e">HasChain</a>(<span class="keyword">const</span> std::string&amp; chainName) <span class="keyword">const</span>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  TH1F*      <a class="code" href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* chainName, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchX, <span class="keyword">const</span> Int_t nBinx, <span class="keyword">const</span> <span class="keywordtype">double</span> x1,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                  <span class="keyword">const</span> <span class="keywordtype">double</span> x2, Option_t* option = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> TString&amp; logScale = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                  <span class="keyword">const</span> <span class="keywordtype">char</span>* cut = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  TH2F* <a class="code" href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* chainName, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchX, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchY, <span class="keyword">const</span> Int_t nBinx,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;             <span class="keyword">const</span> <span class="keywordtype">double</span> x1, <span class="keyword">const</span> <span class="keywordtype">double</span> x2, <span class="keyword">const</span> Int_t nBiny, <span class="keyword">const</span> <span class="keywordtype">double</span> y1, <span class="keyword">const</span> <span class="keywordtype">double</span> y2,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;             Option_t* option = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> TString&amp; logScale = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> <span class="keywordtype">char</span>* cut = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  TH1*  <a class="code" href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* chainName, <span class="keyword">const</span> <span class="keywordtype">char</span>* branchNames, <span class="keyword">const</span> <span class="keywordtype">char</span>* cut = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;             Option_t* option = <span class="stringliteral">&quot;&quot;</span>, <span class="keyword">const</span> TString&amp; logScale = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  TH1*  <a class="code" href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">Draw</a>(<span class="keyword">const</span> <a class="code" href="classBranchPlotOptions.html">BranchPlotOptions</a>&amp; options);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  TH1*  <a class="code" href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">Draw</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tree, <span class="keyword">const</span> YAML::Node&amp; options);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#afc863db0f96ba89c94892e772fa18b6a">DrawAndSaveAllBranches</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* chainName, Option_t* option = <span class="stringliteral">&quot;&quot;</span>,</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                               <span class="keyword">const</span> TString&amp; logScale = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#a5b0aaf2ebe76331ec2344954d62829ae">QuickDrawAndSaveAll</a>(Option_t* option = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#a807591427984893d638714c96a1479bc">Print</a>();</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#a807591427984893d638714c96a1479bc">Print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nameOfTree, Option_t* option = <span class="stringliteral">&quot;toponly&quot;</span>);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#a338edf7defc51792b6fb191e6bc04c5c">PrintCutFlow</a>();</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <a class="code" href="classTable.html">Table</a> <a class="code" href="classBOSSOutputLoader.html#a0a757c913adfb8b45acdc4da2c1914a5">PrintCuts</a>(<span class="keywordtype">bool</span> print = <span class="keyword">true</span>);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keywordtype">void</span>  <a class="code" href="classBOSSOutputLoader.html#aa6b31be6592bb875b35726e05e93253d">PrintTrees</a>(Option_t* option = <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  Long64_t     <a class="code" href="classBOSSOutputLoader.html#a325eb4a68ebe6ecc7a0f8b34c7276208">GetEntries</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* chainName);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  Long64_t     <a class="code" href="classBOSSOutputLoader.html#a733e14f4d592d0d67595e71e4990105b">GetLargestEntries</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <a class="code" href="classChainLoader.html">ChainLoader</a>&amp; <a class="code" href="classBOSSOutputLoader.html#a9c60d59cd8bd7de265628ea498e3ea71">GetChainLoader</a>(<span class="keyword">const</span> std::string&amp; chainName);</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#a7dabf46d21a855f9a714179c0dbb8dcb">   65</a></span>&#160;  <a class="code" href="classChainLoader.html">ChainLoader</a>&amp; <a class="code" href="classBOSSOutputLoader.html#a7dabf46d21a855f9a714179c0dbb8dcb">operator[]</a>(<span class="keyword">const</span> std::string&amp; chainName) { <span class="keywordflow">return</span> <a class="code" href="classBOSSOutputLoader.html#a9c60d59cd8bd7de265628ea498e3ea71">GetChainLoader</a>(chainName); }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  TChain&amp;      <a class="code" href="classBOSSOutputLoader.html#a9d69532766ad2d4d394c80de47c68fe6">GetChain</a>(<span class="keyword">const</span> std::string&amp; chainName);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TYPE&gt;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keyword">inline</span> TYPE&amp; <a class="code" href="classBOSSOutputLoader.html#aa36aa4288371751fa49e6ff0829822e7">GetBranch</a>(<span class="keyword">const</span> std::string&amp; chainName, <span class="keyword">const</span> std::string&amp; branchName);</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#a22c84833e080e2adc4521e441d8409b4">   69</a></span>&#160;  std::unordered_map&lt;std::string, ChainLoader&gt;&amp; <a class="code" href="classBOSSOutputLoader.html#a22c84833e080e2adc4521e441d8409b4">GetChains</a>() { <span class="keywordflow">return</span> <a class="code" href="classBOSSOutputLoader.html#a27d97a8c969aea30e646cf852667f942">fChains</a>; }</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#aa606084dd00882bf3d3c6df65bf030e1">   75</a></span>&#160;  TString <a class="code" href="classBOSSOutputLoader.html#aa606084dd00882bf3d3c6df65bf030e1">fDirectoryPath</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#a6d05057e51efd2e106695b66c7e13f69">   77</a></span>&#160;  std::list&lt;TString&gt; <a class="code" href="classBOSSOutputLoader.html#a6d05057e51efd2e106695b66c7e13f69">fFileNames</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#a27d97a8c969aea30e646cf852667f942">   79</a></span>&#160;  std::unordered_map&lt;std::string, ChainLoader&gt; <a class="code" href="classBOSSOutputLoader.html#a27d97a8c969aea30e646cf852667f942">fChains</a>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  std::list&lt;ChainLoader*&gt; <a class="code" href="classBOSSOutputLoader.html#a20eeede977e8fad3ee426d9e29f1eaba">CreateOrderedMap</a>();</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="keywordtype">void</span>                    <a class="code" href="classBOSSOutputLoader.html#a6e2e3f05b3ddb07c5f202f0c5cf97925">LoadChains</a>(<span class="keywordtype">bool</span> print_branches = <span class="keyword">true</span>, <span class="keywordtype">bool</span> print_averages = <span class="keyword">false</span>);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;};</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html">   90</a></span>&#160;<span class="keyword">class </span><a class="code" href="classDataSetForThreeAnalysisSteps.html">DataSetForThreeAnalysisSteps</a></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#a8768f8b6c17527b215db21141643f718">   93</a></span>&#160;  <a class="code" href="classDataSetForThreeAnalysisSteps.html#a8768f8b6c17527b215db21141643f718">DataSetForThreeAnalysisSteps</a>() {}</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#a6b854da0f8a06cb3936ee1ae9b82c471">   94</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#a6b854da0f8a06cb3936ee1ae9b82c471">GetInclusiveMC</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fDataSet_InclusiveMC; };</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#a2c9ac4e85029ef017606439dc2288415">   95</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#a2c9ac4e85029ef017606439dc2288415">GetExclusiveMC</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fDataSet_ExclusiveMC; };</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#ad55a40690010ecc0beee6310e7d2c593">   96</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#ad55a40690010ecc0beee6310e7d2c593">GetMeasurements</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fDataSet_Measurements; };</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#ad28b331ffbacfd4265e6c83e91ee4e74">   97</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#ad28b331ffbacfd4265e6c83e91ee4e74">ImportInclusiveMC</a>(<span class="keyword">const</span> TString&amp; path)</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">return</span> ImportPathToDataSet(path, fDataSet_InclusiveMC);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  }</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#aa5c525da64d7f9c66dc21f3cbc6ddbe8">  101</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#aa5c525da64d7f9c66dc21f3cbc6ddbe8">ImportExclusiveMC</a>(<span class="keyword">const</span> TString&amp; path)</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">return</span> ImportPathToDataSet(path, fDataSet_ExclusiveMC);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  }</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#aa496f170934eaa7223e94d316a04c836">  105</a></span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt; <a class="code" href="classDataSetForThreeAnalysisSteps.html#aa496f170934eaa7223e94d316a04c836">ImportMeasurements</a>(<span class="keyword">const</span> TString&amp; path)</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  {</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">return</span> ImportPathToDataSet(path, fDataSet_Measurements);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  }</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keyword">const</span> std::shared_ptr&lt;BOSSOutputLoader&gt;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#af1c6ca0eb943d68bcd9a327727884986">  112</a></span>&#160;    <a class="code" href="classDataSetForThreeAnalysisSteps.html#af1c6ca0eb943d68bcd9a327727884986">ImportPathToDataSet</a>(<span class="keyword">const</span> TString&amp; path, std::shared_ptr&lt;BOSSOutputLoader&gt;&amp; dataSet)</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  {</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    dataSet = std::make_shared&lt;BOSSOutputLoader&gt;(path);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">return</span> dataSet;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  }</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#ab864347507aded87104c7d8f62e264a0">  117</a></span>&#160;  std::shared_ptr&lt;BOSSOutputLoader&gt; fDataSet_InclusiveMC{<span class="keyword">nullptr</span>};</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#a8f25acd4a460f19070cfd12970a6d7d4">  118</a></span>&#160;  std::shared_ptr&lt;BOSSOutputLoader&gt; fDataSet_ExclusiveMC{<span class="keyword">nullptr</span>};</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classDataSetForThreeAnalysisSteps.html#aa78ca8bfea80d80d53fc17cc289d2159">  119</a></span>&#160;  std::shared_ptr&lt;BOSSOutputLoader&gt; fDataSet_Measurements{<span class="keyword">nullptr</span>};</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;};</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> TYPE&gt;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classBOSSOutputLoader.html#aa36aa4288371751fa49e6ff0829822e7">  127</a></span>&#160;<span class="keyword">inline</span> TYPE&amp; <a class="code" href="classBOSSOutputLoader.html#aa36aa4288371751fa49e6ff0829822e7">BOSSOutputLoader::GetBranch</a>(<span class="keyword">const</span> std::string&amp; chainName,</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                                         <span class="keyword">const</span> std::string&amp; branchName)</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;{</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="classBOSSOutputLoader.html#a9c60d59cd8bd7de265628ea498e3ea71">GetChainLoader</a>(chainName).<a class="code" href="classChainLoader.html#a216733d576cb3b284d010411fd5e9c6f">Get</a>&lt;TYPE&gt;(branchName);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classBOSSOutputLoader_html_aa606084dd00882bf3d3c6df65bf030e1"><div class="ttname"><a href="classBOSSOutputLoader.html#aa606084dd00882bf3d3c6df65bf030e1">BOSSOutputLoader::fDirectoryPath</a></div><div class="ttdeci">TString fDirectoryPath</div><div class="ttdoc">The path of the directory that was was used to load the ROOT files and generate the TChains in this o...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00075">BOSSOutputLoader.h:75</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a22c84833e080e2adc4521e441d8409b4"><div class="ttname"><a href="classBOSSOutputLoader.html#a22c84833e080e2adc4521e441d8409b4">BOSSOutputLoader::GetChains</a></div><div class="ttdeci">std::unordered_map&lt; std::string, ChainLoader &gt; &amp; GetChains()</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00069">BOSSOutputLoader.h:69</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a733e14f4d592d0d67595e71e4990105b"><div class="ttname"><a href="classBOSSOutputLoader.html#a733e14f4d592d0d67595e71e4990105b">BOSSOutputLoader::GetLargestEntries</a></div><div class="ttdeci">Long64_t GetLargestEntries() const</div><div class="ttdoc">Return the largest number of events in all of the TChains in the loaded ROOT file. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00091">BOSSOutputLoader.cxx:91</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a807591427984893d638714c96a1479bc"><div class="ttname"><a href="classBOSSOutputLoader.html#a807591427984893d638714c96a1479bc">BOSSOutputLoader::Print</a></div><div class="ttdeci">void Print()</div><div class="ttdoc">Print information about all trees in the TFile. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00113">BOSSOutputLoader.cxx:113</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a6e2e3f05b3ddb07c5f202f0c5cf97925"><div class="ttname"><a href="classBOSSOutputLoader.html#a6e2e3f05b3ddb07c5f202f0c5cf97925">BOSSOutputLoader::LoadChains</a></div><div class="ttdeci">void LoadChains(bool print_branches=true, bool print_averages=false)</div><div class="ttdoc">Create a list of TChains based on the files in the directory you are loading. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00422">BOSSOutputLoader.cxx:422</a></div></div>
<div class="ttc" id="BranchPlotOptions_8h_html"><div class="ttname"><a href="BranchPlotOptions_8h.html">BranchPlotOptions.h</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a5b0aaf2ebe76331ec2344954d62829ae"><div class="ttname"><a href="classBOSSOutputLoader.html#a5b0aaf2ebe76331ec2344954d62829ae">BOSSOutputLoader::QuickDrawAndSaveAll</a></div><div class="ttdeci">void QuickDrawAndSaveAll(Option_t *option=&quot;&quot;)</div><div class="ttdoc">Draw the distributions of all branches available in the ROOT file. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00394">BOSSOutputLoader.cxx:394</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_aa6b31be6592bb875b35726e05e93253d"><div class="ttname"><a href="classBOSSOutputLoader.html#aa6b31be6592bb875b35726e05e93253d">BOSSOutputLoader::PrintTrees</a></div><div class="ttdeci">void PrintTrees(Option_t *option=&quot;&quot;)</div></div>
<div class="ttc" id="classBOSSOutputLoader_html_aa36aa4288371751fa49e6ff0829822e7"><div class="ttname"><a href="classBOSSOutputLoader.html#aa36aa4288371751fa49e6ff0829822e7">BOSSOutputLoader::GetBranch</a></div><div class="ttdeci">TYPE &amp; GetBranch(const std::string &amp;chainName, const std::string &amp;branchName)</div><div class="ttdoc">Get a certain branch with name branchName in TTree with name chainName. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00127">BOSSOutputLoader.h:127</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a9d69532766ad2d4d394c80de47c68fe6"><div class="ttname"><a href="classBOSSOutputLoader.html#a9d69532766ad2d4d394c80de47c68fe6">BOSSOutputLoader::GetChain</a></div><div class="ttdeci">TChain &amp; GetChain(const std::string &amp;chainName)</div><div class="ttdoc">Look for a tree in the files and get its TChain. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00100">BOSSOutputLoader.cxx:100</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a47206d882287c355c265687c93b34861"><div class="ttname"><a href="classBOSSOutputLoader.html#a47206d882287c355c265687c93b34861">BOSSOutputLoader::Draw</a></div><div class="ttdeci">TH1F * Draw(const char *chainName, const char *branchX, const Int_t nBinx, const double x1, const double x2, Option_t *option=&quot;&quot;, const TString &amp;logScale=&quot;&quot;, const char *cut=&quot;&quot;)</div><div class="ttdoc">Draw the distributions of all branches available in the ROOT file. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00335">BOSSOutputLoader.cxx:335</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_ad28b331ffbacfd4265e6c83e91ee4e74"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#ad28b331ffbacfd4265e6c83e91ee4e74">DataSetForThreeAnalysisSteps::ImportInclusiveMC</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; ImportInclusiveMC(const TString &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00097">BOSSOutputLoader.h:97</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_aa5c525da64d7f9c66dc21f3cbc6ddbe8"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#aa5c525da64d7f9c66dc21f3cbc6ddbe8">DataSetForThreeAnalysisSteps::ImportExclusiveMC</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; ImportExclusiveMC(const TString &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00101">BOSSOutputLoader.h:101</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a7dabf46d21a855f9a714179c0dbb8dcb"><div class="ttname"><a href="classBOSSOutputLoader.html#a7dabf46d21a855f9a714179c0dbb8dcb">BOSSOutputLoader::operator[]</a></div><div class="ttdeci">ChainLoader &amp; operator[](const std::string &amp;chainName)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00065">BOSSOutputLoader.h:65</a></div></div>
<div class="ttc" id="ChainLoader_8h_html"><div class="ttname"><a href="ChainLoader_8h.html">ChainLoader.h</a></div></div>
<div class="ttc" id="classChainLoader_html_a216733d576cb3b284d010411fd5e9c6f"><div class="ttname"><a href="classChainLoader.html#a216733d576cb3b284d010411fd5e9c6f">ChainLoader::Get</a></div><div class="ttdeci">std::unordered_map&lt; std::string, TYPE &gt; &amp; Get()</div><div class="ttdoc">Get mapping of branches for a certaine typename (specified through template specialisation). </div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a6d05057e51efd2e106695b66c7e13f69"><div class="ttname"><a href="classBOSSOutputLoader.html#a6d05057e51efd2e106695b66c7e13f69">BOSSOutputLoader::fFileNames</a></div><div class="ttdeci">std::list&lt; TString &gt; fFileNames</div><div class="ttdoc">List of filenames that were loaded from the directory. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00077">BOSSOutputLoader.h:77</a></div></div>
<div class="ttc" id="PrintTable_8h_html"><div class="ttname"><a href="PrintTable_8h.html">PrintTable.h</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a338edf7defc51792b6fb191e6bc04c5c"><div class="ttname"><a href="classBOSSOutputLoader.html#a338edf7defc51792b6fb191e6bc04c5c">BOSSOutputLoader::PrintCutFlow</a></div><div class="ttdeci">void PrintCutFlow()</div><div class="ttdoc">Method that prints the number of entries of each TChain in the ROOT file. This allows you to get an i...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00163">BOSSOutputLoader.cxx:163</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_a6b854da0f8a06cb3936ee1ae9b82c471"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#a6b854da0f8a06cb3936ee1ae9b82c471">DataSetForThreeAnalysisSteps::GetInclusiveMC</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; GetInclusiveMC() const</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00094">BOSSOutputLoader.h:94</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a325eb4a68ebe6ecc7a0f8b34c7276208"><div class="ttname"><a href="classBOSSOutputLoader.html#a325eb4a68ebe6ecc7a0f8b34c7276208">BOSSOutputLoader::GetEntries</a></div><div class="ttdeci">Long64_t GetEntries(const char *chainName)</div><div class="ttdoc">Get the number of events in one of the TChains. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00085">BOSSOutputLoader.cxx:85</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_af1c6ca0eb943d68bcd9a327727884986"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#af1c6ca0eb943d68bcd9a327727884986">DataSetForThreeAnalysisSteps::ImportPathToDataSet</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; ImportPathToDataSet(const TString &amp;path, std::shared_ptr&lt; BOSSOutputLoader &gt; &amp;dataSet)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00112">BOSSOutputLoader.h:112</a></div></div>
<div class="ttc" id="classBranchPlotOptions_html"><div class="ttname"><a href="classBranchPlotOptions.html">BranchPlotOptions</a></div><div class="ttdoc">This object is used as a container of information you need to plot a branch or a collection of branch...</div><div class="ttdef"><b>Definition:</b> <a href="BranchPlotOptions_8h_source.html#l00019">BranchPlotOptions.h:19</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html">DataSetForThreeAnalysisSteps</a></div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00090">BOSSOutputLoader.h:90</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a9c60d59cd8bd7de265628ea498e3ea71"><div class="ttname"><a href="classBOSSOutputLoader.html#a9c60d59cd8bd7de265628ea498e3ea71">BOSSOutputLoader::GetChainLoader</a></div><div class="ttdeci">ChainLoader &amp; GetChainLoader(const std::string &amp;chainName)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00079">BOSSOutputLoader.cxx:79</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_a2c9ac4e85029ef017606439dc2288415"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#a2c9ac4e85029ef017606439dc2288415">DataSetForThreeAnalysisSteps::GetExclusiveMC</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; GetExclusiveMC() const</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00095">BOSSOutputLoader.h:95</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a0a757c913adfb8b45acdc4da2c1914a5"><div class="ttname"><a href="classBOSSOutputLoader.html#a0a757c913adfb8b45acdc4da2c1914a5">BOSSOutputLoader::PrintCuts</a></div><div class="ttdeci">Table PrintCuts(bool print=true)</div><div class="ttdoc">This function creates a list of TableEntrys from the &quot;_cutvalues&quot; branch which is then printed...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00185">BOSSOutputLoader.cxx:185</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_a8768f8b6c17527b215db21141643f718"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#a8768f8b6c17527b215db21141643f718">DataSetForThreeAnalysisSteps::DataSetForThreeAnalysisSteps</a></div><div class="ttdeci">DataSetForThreeAnalysisSteps()</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00093">BOSSOutputLoader.h:93</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a20eeede977e8fad3ee426d9e29f1eaba"><div class="ttname"><a href="classBOSSOutputLoader.html#a20eeede977e8fad3ee426d9e29f1eaba">BOSSOutputLoader::CreateOrderedMap</a></div><div class="ttdeci">std::list&lt; ChainLoader * &gt; CreateOrderedMap()</div><div class="ttdoc">Create a list that is ordered by the number of entries in the TChain. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00401">BOSSOutputLoader.cxx:401</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a10870242930d8d48ded8bde0575a2233"><div class="ttname"><a href="classBOSSOutputLoader.html#a10870242930d8d48ded8bde0575a2233">BOSSOutputLoader::BOSSOutputLoader</a></div><div class="ttdeci">BOSSOutputLoader()</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00028">BOSSOutputLoader.h:28</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a72fe36425b77dd4dbfd87c93d2d1965e"><div class="ttname"><a href="classBOSSOutputLoader.html#a72fe36425b77dd4dbfd87c93d2d1965e">BOSSOutputLoader::HasChain</a></div><div class="ttdeci">const bool HasChain(const std::string &amp;chainName) const</div><div class="ttdoc">Check if file has chain with name chainName. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00106">BOSSOutputLoader.cxx:106</a></div></div>
<div class="ttc" id="classTable_html"><div class="ttname"><a href="classTable.html">Table</a></div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00052">PrintTable.h:52</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_afc863db0f96ba89c94892e772fa18b6a"><div class="ttname"><a href="classBOSSOutputLoader.html#afc863db0f96ba89c94892e772fa18b6a">BOSSOutputLoader::DrawAndSaveAllBranches</a></div><div class="ttdeci">void DrawAndSaveAllBranches(const char *chainName, Option_t *option=&quot;&quot;, const TString &amp;logScale=&quot;&quot;)</div><div class="ttdoc">Draw the distributions of all branches available in the ROOT file. </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00387">BOSSOutputLoader.cxx:387</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html"><div class="ttname"><a href="classBOSSOutputLoader.html">BOSSOutputLoader</a></div><div class="ttdoc">General container for BOSS analysis output This object only needs a path of a directory containin ROO...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00023">BOSSOutputLoader.h:23</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a27d97a8c969aea30e646cf852667f942"><div class="ttname"><a href="classBOSSOutputLoader.html#a27d97a8c969aea30e646cf852667f942">BOSSOutputLoader::fChains</a></div><div class="ttdeci">std::unordered_map&lt; std::string, ChainLoader &gt; fChains</div><div class="ttdoc">Map of TChains of the loaded ROOT files (contained withing ChainLoader). </div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00079">BOSSOutputLoader.h:79</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_ad55a40690010ecc0beee6310e7d2c593"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#ad55a40690010ecc0beee6310e7d2c593">DataSetForThreeAnalysisSteps::GetMeasurements</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; GetMeasurements() const</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00096">BOSSOutputLoader.h:96</a></div></div>
<div class="ttc" id="classChainLoader_html"><div class="ttname"><a href="classChainLoader.html">ChainLoader</a></div><div class="ttdoc">A container class for a TChain that allows easy access to its branches. </div><div class="ttdef"><b>Definition:</b> <a href="ChainLoader_8h_source.html#l00022">ChainLoader.h:22</a></div></div>
<div class="ttc" id="classDataSetForThreeAnalysisSteps_html_aa496f170934eaa7223e94d316a04c836"><div class="ttname"><a href="classDataSetForThreeAnalysisSteps.html#aa496f170934eaa7223e94d316a04c836">DataSetForThreeAnalysisSteps::ImportMeasurements</a></div><div class="ttdeci">const std::shared_ptr&lt; BOSSOutputLoader &gt; ImportMeasurements(const TString &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00105">BOSSOutputLoader.h:105</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><a class="el" href="dir_e733d63e90fcd0998431c29f3924cd75.html">File</a></li><li class="navelem"><a class="el" href="BOSSOutputLoader_8h.html">BOSSOutputLoader.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
